﻿using CommonUtils;

namespace BatchGit
{
    class Program
    {
        static void Main(string[] args)
        {
            var path = ApplicationUtil.CurrentFolder;
            //path = @"D:\Subversion";
            var folders = FolderUtil.GetFolders(path);
            foreach (var folder in folders)
            {
                //TODO exit seconds 貌似无效
                GitUtil.Pull(folder.FullName, 6);
                GitUtil.SubmoduleUpdate(folder.FullName, 6);
            }
            ConsoleUtil.Pause();
        }
    }
}
